﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="city.aspx.cs" Inherits="city" %>


<%@ Register Src="UserControls/CFooterControl.ascx" TagName="CFooterControl" TagPrefix="uc1" %>
<%@ Register Src="UserControls/CHeaderControl.ascx" TagName="CHeaderControl" TagPrefix="uc2" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register Src="UserControls/blockbusiness.ascx" TagName="blockbusiness" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="pagemasker">
    </div>
    <div id="dialog">
    </div>
    <div id="doc">
        <uc2:CHeaderControl ID="CHeaderControl1" runat="server" />
        <div id="bdw" class="bdw">
            <div id="bd" class="cf">
                <div id="about">
                    <div id="content" class="about">
                        <div class="box clear">
                            <div class="box-content">
                                <div class="head">
                                    <h2>
                                        选择你所在的城市</h2>
                                </div>
                                <div class="sect">
                                    <table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
                                        <%
                                            while (i < letterscount)
                                            { %>
                                        <tr>
                                            
                                                
                                                    <%List<Maticsoft.Model.Category> citys = GetCitysByLetter(cityletters.Rows[i]["letter"].ToString()); %>
                                                    <%foreach (Maticsoft.Model.Category city in citys)
                                                      { %>
                                                      <tr><td valign="top"><b><%=city.Letter%></b></td>
                                                      <td valign="top">
                                                    <p class="city_list" style="margin: 0;"><a href="/city.aspx?ename=<%=city.Ename %>&r=<%=GetRefer() %>">
                                                        <%=city.Name %></a></p>
                                                         </td>
                                                    <%} %>
                                           
                                        </tr>
                                        <%
                                            i++;
                                            } %>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="sidebar">
                        <uc3:blockbusiness ID="blockbusiness1" runat="server" />
                    </div>
                </div>
            </div>
            <!-- bd end -->
        </div>
        <!-- bdw end -->
        <uc1:CFooterControl ID="CFooterControl1" runat="server" />
    </div>
    </form>
</body>
</html>

